import { Controller, Get, Post } from "@nestjs/common";
import { LoginService } from "./login.service";
import { Public } from "../../common/decorators/public.decorator";

@Controller()

export class LoginController {
    constructor(private readonly loginService: LoginService) {}

    @Get('catpchaImage')
    @Public()
    async catpchaImage() {
        return await this.loginService.createImageCaptcha();
    }


    @Post('login')
    @Public()
    async login() {
        return "login";
    }
}